import request from '@/utils/request'
//前摄像头部分
// 前摄校时
export function Qtiming(query) {
  return request({
    url: '/robot/video/TimingBbfore/synTimeBefore',
    method: 'get',
    params: query
  })
}

//前摄像头水印
export function Qwatermark(query) {
  return request({
    url: '/robot/video/watermark/fixWaterBefore',
    method: 'get',
    params: query
  })
}

//前摄像头开始录像
export function QstartVideo(query) {
  return request({
    url: '/robot/video/handVideo/startVideoBefore',
    method: 'get',
    params: query
  })
}

//前摄像头停止录像
export function QendVideo() {
  return request({
    url: '/robot/video/handVideo/stopVideoBefore',
    method: 'get',
  })
}

//拍照
export function Qpicture(query) {
  return request({
    url: '/robot/video/snapPicture/synBefore',
    method: 'post',
    params: query
  })
}

//云台向上 开始
export function QptzUp(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlUpStart',
    method: 'post',
    params: query
  })
}

//云台向上 停止
export function QptzUpEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlUpEnd',
    method: 'post',
  })
}

//云台向下 开始
export function QptzDown(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlDownStart',
    method: 'post',
    params: query
  })
}

//云台向下 停止
export function QptzDownEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlDownEnd',
    method: 'post',
  })
}

//云台向左  开始
export function QptzLeft(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlLeftStart',
    method: 'post',
    params: query
  })
}

//云台向左  停止
export function QptzLeftEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlLeftEnd',
    method: 'post',
  })
}

//云台向右  开始
export function QptzRight(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlRightStart',
    method: 'post',
    params: query
  })
}

//云台向右 停止
export function QptzRightEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlRightEnd',
    method: 'post',
  })
}

//云台向左上  开始
export function QptzLeftUp(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlLeftUpStart',
    method: 'post',
    params: query
  })
}

//云台向左上  停止
export function QptzLeftUpEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlLeftUpEnd',
    method: 'post',
  })
}

//云台向右上 开始
export function QptzRightUp(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlRightUpStart',
    method: 'post',
    params: query
  })
}

//云台向右上  停止
export function QptzRightUpEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlRightUpEnd',
    method: 'post',
  })
}

//云台向左下  开始
export function QptzLeftDown(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlLeftDownStart',
    method: 'post',
    params: query
  })
}
//云台向左下  停止
export function QptzLeftDownEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlLeftDownEnd',
    method: 'post',
  })
}

//云台向右下 开始
export function QptzRightDown(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlRightDownStart',
    method: 'post',
    params: query
  })
}

//云台向右下 停止
export function QptzRightDownEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlRightDownEnd',
    method: 'post',
  })
}

//变倍+ 开始
export function QzoomAdd(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlZoomAddStart',
    method: 'post',
    params: query
  })
}
//变倍+ 结束
export function QzoomAddEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlZoomAddEnd',
    method: 'post',
  })
}
//变倍- 开始
export function QzoomDec(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlZoomDecStart',
    method: 'post',
    params: query
  })
}
//变倍-结束
export function QzoomDecEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlZoomDecEnd',
    method: 'post',
  })
}

//变焦+开始
export function QfocusAdd(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlFocusAddStart',
    method: 'post',
    params: query
  })
}
//变焦+结束
export function QfocusAddEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlFocusAddEnd',
    method: 'post',
  })
}

//变焦-开始
export function QfocusDec(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlFocusDecStart',
    method: 'post',
    params: query
  })
}
//变焦-结束
export function QfocusDecEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlFocusDecEnd',
    method: 'post',
  })
}

//光圈+开始
export function QirisAdd(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlIrisAddStart',
    method: 'post',
    params: query
  })
}
//光圈+结束
export function QirisAddEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlIrisAddEnd',
    method: 'post',
  })
}

//光圈-开始
export function QirisDec(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlIrisDecStart',
    method: 'post',
    params: query
  })
}
//光圈-结束
export function QirisDecEnd() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlIrisDecEnd',
    method: 'post',
  })
}





//后摄像头部分
// 后摄校时
export function Htiming(query) {
  return request({
    url: '/robot/video/TimingAfter/synTimeAfter',
    method: 'get',
    params: query
  })
}

//后摄像头水印
export function Hwatermark(query) {
  return request({
    url: '/robot/video/watermark/fixWaterAfter',
    method: 'get',
    params: query
  })
}

//后摄像头开始录像
export function HstartVideo(query) {
  return request({
    url: '/robot/video/handVideo/startVideoAfter',
    method: 'get',
    params: query
  })
}

//后摄像头停止录像
export function HendVideo() {
  return request({
    url: '/robot/video/handVideo/stopVideoAfter',
    method: 'get',
  })
}

//后拍照
export function Hpicture(query) {
  return request({
    url: '/robot/video/snapPicture/synAfter',
    method: 'post',
    params: query
  })
}

//云台向上 开始
export function HptzUp(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlUpStart',
    method: 'post',
    params: query
  })
}

//云台向上 停止
export function HptzUpEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlUpEnd',
    method: 'post',
  })
}

//云台向下 开始
export function HptzDown(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlDownStart',
    method: 'post',
    params: query
  })
}

//云台向下 停止
export function HptzDownEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlDownEnd',
    method: 'post',
  })
}

//云台向左  开始
export function HptzLeft(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlLeftStart',
    method: 'post',
    params: query
  })
}

//云台向左  停止
export function HptzLeftEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlLeftEnd',
    method: 'post',
  })
}

//云台向右  开始
export function HptzRight(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlRightStart',
    method: 'post',
    params: query
  })
}

//云台向右 停止
export function HptzRightEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlRightEnd',
    method: 'post',
  })
}

//云台向左上  开始
export function HptzLeftUp(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlLeftUpStart',
    method: 'post',
    params: query
  })
}

//云台向左上  停止
export function HptzLeftUpEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlLeftUpEnd',
    method: 'post',
  })
}

//云台向右上 开始
export function HptzRightUp(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlRightUpStart',
    method: 'post',
    params: query
  })
}

//云台向右上  停止
export function HptzRightUpEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlRightUpEnd',
    method: 'post',
  })
}

//云台向左下  开始
export function HptzLeftDown(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlLeftDownStart',
    method: 'post',
    params: query
  })
}
//云台向左下  停止
export function HptzLeftDownEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlLeftDownEnd',
    method: 'post',
  })
}

//云台向右下 开始
export function HptzRightDown(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlRightDownStart',
    method: 'post',
    params: query
  })
}

//云台向右下 停止
export function HptzRightDownEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlRightDownEnd',
    method: 'post',
  })
}

//变倍+ 开始
export function HzoomAdd(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlZoomAddStart',
    method: 'post',
    params: query
  })
}
//变倍+ 结束
export function HzoomAddEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlZoomAddEnd',
    method: 'post',
  })
}
//变倍- 开始
export function HzoomDec(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlZoomDecStart',
    method: 'post',
    params: query
  })
}
//变倍-结束
export function HzoomDecEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlZoomDecEnd',
    method: 'post',
  })
}

//变焦+开始
export function HfocusAdd(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlFocusAddStart',
    method: 'post',
    params: query
  })
}
//变焦+结束
export function HfocusAddEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlFocusAddEnd',
    method: 'post',
  })
}

//变焦-开始
export function HfocusDec(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlFocusDecStart',
    method: 'post',
    params: query
  })
}
//变焦-结束
export function HfocusDecEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlFocusDecEnd',
    method: 'post',
  })
}

//光圈+开始
export function HirisAdd(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlIrisAddStart',
    method: 'post',
    params: query
  })
}
//光圈+结束
export function HirisAddEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlIrisAddEnd',
    method: 'post',
  })
}

//光圈-开始
export function HirisDec(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlIrisDecStart',
    method: 'post',
    params: query
  })
}
//光圈-结束
export function HirisDecEnd() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlIrisDecEnd',
    method: 'post',
  })
}


///////////////云台长按事件入口/////////
export function QptzUp1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlUpStart1',
    method: 'post',
    params: query
  })
}

//云台向上 停止
export function QptzUpEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlUpEnd1',
    method: 'post',
  })
}

//云台向下 开始
export function QptzDown1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlDownStart1',
    method: 'post',
    params: query
  })
}

//云台向下 停止
export function QptzDownEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlDownEnd1',
    method: 'post',
  })
}

//云台向左  开始
export function QptzLeft1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlLeftStart1',
    method: 'post',
    params: query
  })
}

//云台向左  停止
export function QptzLeftEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlLeftEnd1',
    method: 'post',
  })
}

//云台向右  开始
export function QptzRight1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlRightStart1',
    method: 'post',
    params: query
  })
}

//云台向右 停止
export function QptzRightEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlRightEnd1',
    method: 'post',
  })
}

export function onLineStatus(query) {
  return request({
    url: '/robot/video/online/onLineStatus',
    method: 'get',
    params: query
  })
}
// export function onlineAfter(query) {
//   return request({
//     url: '/robot/video/online/onlineAfter',
//     method: 'get',
//     params: query
//   })
// }

//云台向左上  开始
export function QptzLeftUp1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlLeftUpStart1',
    method: 'post',
    params: query
  })
}

//云台向左上  停止
export function QptzLeftUpEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlLeftUpEnd1',
    method: 'post',
  })
}

//云台向右上 开始
export function QptzRightUp1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlRightUpStart1',
    method: 'post',
    params: query
  })
}

//云台向右上  停止
export function QptzRightUpEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlRightUpEnd1',
    method: 'post',
  })
}

//云台向左下  开始
export function QptzLeftDown1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlLeftDownStart1',
    method: 'post',
    params: query
  })
}
//云台向左下  停止
export function QptzLeftDownEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlLeftDownEnd1',
    method: 'post',
  })
}

//云台向右下 开始
export function QptzRightDown1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlRightDownStart1',
    method: 'post',
    params: query
  })
}

//云台向右下 停止
export function QptzRightDownEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlRightDownEnd1',
    method: 'post',
  })
}
//变倍+ 开始
export function QzoomAdd1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlZoomAddStart1',
    method: 'post',
    params: query
  })
}
//变倍+ 结束
export function QzoomAddEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlZoomAddEnd1',
    method: 'post',
  })
}
//变倍- 开始
export function QzoomDec1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlZoomDecStart1',
    method: 'post',
    params: query
  })
}
//变倍-结束
export function QzoomDecEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlZoomDecEnd1',
    method: 'post',
  })
}

//变焦+开始
export function QfocusAdd1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlFocusAddStart1',
    method: 'post',
    params: query
  })
}
//变焦+结束
export function QfocusAddEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlFocusAddEnd1',
    method: 'post',
  })
}

//变焦-开始
export function QfocusDec1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlFocusDecStart1',
    method: 'post',
    params: query
  })
}
//变焦-结束
export function QfocusDecEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlFocusDecEnd1',
    method: 'post',
  })
}

//光圈+开始
export function QirisAdd1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlIrisAddStart1',
    method: 'post',
    params: query
  })
}
//光圈+结束
export function QirisAddEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlIrisAddEnd1',
    method: 'post',
  })
}

//光圈-开始
export function QirisDec1(query) {
  return request({
    url: '/robot/video/beforePTZ/ptzControlIrisDecStart1',
    method: 'post',
    params: query
  })
}
//光圈-结束
export function QirisDecEnd1() {
  return request({
    url: '/robot/video/beforePTZ/ptzControlIrisDecEnd1',
    method: 'post',
  })
}

///////////大华后摄像头长按////////////////

//云台向上 开始
export function HptzUp1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlUpStart1',
    method: 'post',
    params: query
  })
}

//云台向上 停止
export function HptzUpEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlUpEnd1',
    method: 'post',
  })
}

//云台向下 开始
export function HptzDown1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlDownStart1',
    method: 'post',
    params: query
  })
}

//云台向下 停止
export function HptzDownEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlDownEnd1',
    method: 'post',
  })
}

//云台向左  开始
export function HptzLeft1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlLeftStart1',
    method: 'post',
    params: query
  })
}

//云台向左  停止
export function HptzLeftEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlLeftEnd1',
    method: 'post',
  })
}

//云台向右  开始
export function HptzRight1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlRightStart1',
    method: 'post',
    params: query
  })
}

//云台向右 停止
export function HptzRightEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlRightEnd1',
    method: 'post',
  })
}

//云台向左上  开始
export function HptzLeftUp1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlLeftUpStart1',
    method: 'post',
    params: query
  })
}

//云台向左上  停止
export function HptzLeftUpEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlLeftUpEnd1',
    method: 'post',
  })
}

//云台向右上 开始
export function HptzRightUp1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlRightUpStart1',
    method: 'post',
    params: query
  })
}

//云台向右上  停止
export function HptzRightUpEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlRightUpEnd1',
    method: 'post',
  })
}

//云台向左下  开始
export function HptzLeftDown1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlLeftDownStart1',
    method: 'post',
    params: query
  })
}
//云台向左下  停止
export function HptzLeftDownEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlLeftDownEnd1',
    method: 'post',
  })
}

//云台向右下 开始
export function HptzRightDown1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlRightDownStart1',
    method: 'post',
    params: query
  })
}

//云台向右下 停止
export function HptzRightDownEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlRightDownEnd1',
    method: 'post',
  })
}

//变倍+ 开始
export function HzoomAdd1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlZoomAddStart1',
    method: 'post',
    params: query
  })
}
//变倍+ 结束
export function HzoomAddEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlZoomAddEnd1',
    method: 'post',
  })
}
//变倍- 开始
export function HzoomDec1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlZoomDecStart1',
    method: 'post',
    params: query
  })
}
//变倍-结束
export function HzoomDecEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlZoomDecEnd1',
    method: 'post',
  })
}

//变焦+开始
export function HfocusAdd1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlFocusAddStart1',
    method: 'post',
    params: query
  })
}
//变焦+结束
export function HfocusAddEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlFocusAddEnd1',
    method: 'post',
  })
}

//变焦-开始
export function HfocusDec1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlFocusDecStart1',
    method: 'post',
    params: query
  })
}
//变焦-结束
export function HfocusDecEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlFocusDecEnd1',
    method: 'post',
  })
}

//光圈+开始
export function HirisAdd1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlIrisAddStart1',
    method: 'post',
    params: query
  })
}
//光圈+结束
export function HirisAddEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlIrisAddEnd1',
    method: 'post',
  })
}

//光圈-开始
export function HirisDec1(query) {
  return request({
    url: '/robot/video/afterPTZ/ptzControlIrisDecStart1',
    method: 'post',
    params: query
  })
}
//光圈-结束
export function HirisDecEnd1() {
  return request({
    url: '/robot/video/afterPTZ/ptzControlIrisDecEnd1',
    method: 'post',
  })
}


